<?php
/**
 * Created by PhpStorm.
 * User: yxs
 * Date: 2017/7/1
 * Time: 17:47
 */

namespace model;


use think\Model;

class ShopUserCart extends Model
{
    public function shopGoods(){
        return $this->belongsTo('ShopGoods',"goods_id");
    }

    public function setAddTimeAttr()
    {
        return time();
    }
}